package com.tencreat.domain.account.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 店铺入驻申请入参
 * @author zixin
 */
@Data
public class AccountOpenStoreSettleInDTO {

    @ApiModelProperty(value = "店主名字", required = true)
    @NotBlank
    private String username;

    @ApiModelProperty(value = "店铺手机号码",required = true)
    @NotBlank
    private String mobile;

    @ApiModelProperty(value = "店铺名称", required = true)
    @NotBlank
    private String storeName;

    @ApiModelProperty(value = "店铺头像", required = true)
    @NotBlank
    private String photo;

    @ApiModelProperty(value = "详细地址",required = true)
    @NotBlank
    private String address;

    @ApiModelProperty(value = "身份证正面",required = true)
    @NotBlank
    private String frontOfIdCard;

    @ApiModelProperty(value = "身份证背面",required = true)
    @NotBlank
    private String backOfIdCard;

    @ApiModelProperty(value= "行政区域表的省ID",required = true)
    @NotNull
    private Long province;

    @ApiModelProperty(value= "行政区域表的市ID",required = true)
    @NotNull
    private Long city;

    @ApiModelProperty(value= "行政区域表的区县ID",required = true)
    @NotNull
    private Long county;

    @ApiModelProperty(value= "营业执照")
    private String businessLicense;

    @ApiModelProperty(value = "店铺资质")
    private String qualification;

    /**
     * 描述信息  0 美食 | 1 医疗
     * @Author yaoruiqi
     * @Date: 2023/10/16 02:16
     */
    @ApiModelProperty(value = "店铺类型 0美食  1医疗 ")
    private String type;

    @ApiModelProperty(value = "店铺分类id ")
    private Long categoryId;


    @ApiModelProperty("营业时间开始")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime businessStartTime;

    @ApiModelProperty("营业时间结束")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime businessEndTime;


    @Excel(name = "经度")
    @ApiModelProperty(value= "经度")
    private String longitude;

    @Excel(name = "维度")
    @ApiModelProperty(value= "维度")
    private String dimensionality;

    @ApiModelProperty(value= "分类父id")
    private Long pid;




}
